package org.chatboleh.util;

import javax.swing.JOptionPane;

public class MessageBox {
	
	public static void info(Object message) {
		info(message, "Info");
	}
	public static void text(Object message) {
		info(message, "");
	}
	public static void error(Object message) {
		info(message, "Error");
	}
	public static void warning(Object message) {
		info(message, "Warning");
	}
	public static void question(Object message) {
		info(message, "Question");
	}
	public static void info(Object message, String title) {
		JOptionPane.showMessageDialog(null, message,
				title, JOptionPane.INFORMATION_MESSAGE);
	}
	public static void error(Object message, String title) {
		JOptionPane.showMessageDialog(null, message,
				title, JOptionPane.ERROR_MESSAGE);
	}
	public static void warning(Object message, String title) {
		JOptionPane.showMessageDialog(null, message,
				title, JOptionPane.WARNING_MESSAGE);
	}
	public static void question(Object message, String title) {
		JOptionPane.showMessageDialog(null, message,
				title, JOptionPane.QUESTION_MESSAGE);
	}
	public static void text(Object message, String title) {
		JOptionPane.showMessageDialog(null, message,
				title, JOptionPane.PLAIN_MESSAGE);
	}
}
